package qualomelhor.database;

import javax.persistence.Id;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Serialized;
import java.io.Serializable;
import java.util.ArrayList;
import qualomelhor.database.ExpressaoDB;

@Entity
public class SequenciaExpressaoDB implements Serializable {

	private static final long serialVersionUID = 0;

	@Id
	private Long id;
	@Indexed
	private String nome;
	@Serialized
	private ArrayList<ExpressaoDB> listExpressao;
	private ArrayList<Integer> listTempoLoop;
	private boolean reestart;
	private int frameRestart;
	private int tempoRestart;

	public SequenciaExpressaoDB() {

	}

	public SequenciaExpressaoDB(ArrayList<ExpressaoDB> listExpressao, ArrayList<Integer> listTempoLoop, boolean reestart, int frameRestart, int tempoRestart) {
		this.listExpressao = listExpressao;
		this.listTempoLoop = listTempoLoop;
		this.reestart = reestart;
		this.frameRestart = frameRestart;
		this.tempoRestart = tempoRestart;
	}

	public Long getId() {
		return id;
	}

	public String getNome() {
		return nome;
	}

	public ArrayList<ExpressaoDB> getListExpressao() {
		return listExpressao;
	}

	public ArrayList<Integer> getListTempoLoop() {
		return listTempoLoop;
	}

	public boolean getReestart() {
		return reestart;
	}

	public int getFrameRestart() {
		return frameRestart;
	}

	public int getTempoRestart() {
		return tempoRestart;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public void setListExpressao(ArrayList<ExpressaoDB> listExpressao) {
		this.listExpressao = listExpressao;
	}

	public void setListTempoLoop(ArrayList<Integer> listTempoLoop) {
		this.listTempoLoop = listTempoLoop;
	}

	public void setReestart(boolean reestart) {
		this.reestart = reestart;
	}

	public void setFrameRestart(int frameRestart) {
		this.frameRestart = frameRestart;
	}

	public void setTempoRestart(int tempoRestart) {
		this.tempoRestart = tempoRestart;
	}
}